# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=HTTP-Daemon
pkgname=perl-${_realname}
pkgver=6.01
pkgrel=2
pkgdesc="A simple http server class"
arch=('any')
url="http://search.cpan.org/dist/HTTP-Daemon"
groups=('perl-modules')
license=('PerlArtistic' 'GPL')
depends=('perl' 'perl-HTTP-Date' 'perl-HTTP-Message' 'perl-LWP-MediaTypes')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/${_realname}-${pkgver}.tar.gz)
sha1sums=('d3b7614d4b3be4b61d26011efe90026c955102a4')

build() {
  cd "${srcdir}/${_realname}-${pkgver}"
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make test
}

package() {
    cd "${srcdir}/${_realname}-${pkgver}"
    make DESTDIR="${pkgdir}" install
}
